package com.hq.ims.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.hq.ims.data.vo.BusInfoFeedbackDeriveMapstruct;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @author 蒋柏平
* @since 20241108
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("BusInfoFeedbackDerive")
@TableName(value = "bus_info_feedback_derive")
@ApiModel(value = "经营信息反馈派生表", description = "经营信息反馈派生表")
public class BusInfoFeedbackDerive extends BaseModel<BusInfoFeedbackDerive> implements Serializable {

    @ApiModelProperty(value = "")
    @TableId(value = "bus_info_feedback_derive_id",type = IdType.ASSIGN_UUID)
    private String busInfoFeedbackDeriveId;

    @ApiModelProperty(value = "经营信息反馈ID")
    @TableField(value = "bus_info_feedback_id")
    private String busInfoFeedbackId;

    @ApiModelProperty(value = "经营信息ID")
    @TableField(value = "busi_info_id")
    private String busiInfoId;

    @ApiModelProperty(value = "派生的经营信息ID")
    @TableField(value = "derive_busi_info_id")
    private String deriveBusiInfoId;

    @ApiModelProperty(value = "")
    @TableField(value = "create_date_time", fill = FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateTime;

    @ApiModelProperty(value = "")
    @TableField(value = "update_date_time", fill = FieldFill.INSERT_UPDATE)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDateTime;

    @ApiModelProperty(value = "")
    @TableField(value = "create_user_name", fill = FieldFill.INSERT)
    private String createUserName;

    @ApiModelProperty(value = "")
    @TableField(value = "update_user_name", fill = FieldFill.INSERT_UPDATE)
    private String updateUserName;

    @ApiModelProperty(value = "")
    @TableField(value = "version")
    @Version
    private Integer version;

    @ApiModelProperty(value = "")
    @TableField(value = "is_del")
    @TableLogic
    private Boolean isDel;

    @ApiModelProperty(value = "")
    @TableField(value = "create_user_id", fill = FieldFill.INSERT)
    private String createUserId;

    @ApiModelProperty(value = "")
    @TableField(value = "update_user_id", fill = FieldFill.INSERT_UPDATE)
    private String updateUserId;

    @ApiModelProperty(value = "")
    @TableField(value = "org_id")
    private String orgId;

    public BusInfoFeedbackDeriveMapstruct.BusInfoFeedbackDeriveRowAuthVo auth(){
        BusInfoFeedbackDeriveMapstruct.BusInfoFeedbackDeriveRowAuthVo auth = new BusInfoFeedbackDeriveMapstruct.BusInfoFeedbackDeriveRowAuthVo(this);
        return auth;
    }

}
